<template>
  <div class="main">
    <h3>提交信息为：</h3>
    <el-card class="box-card">
      <div style="word-wrap: break-word">
        {{ formJson }}
      </div>
    </el-card>

  </div>
</template>

<script>
export default {
  name: 'pubDetail',
  data() {
    return {
      formJson: undefined,
      form: {}
    }
  },
  methods: {
    init(base, specs, skus) {
      this.form = base
      this.form.specs = specs
      this.form.skus = skus

      this.formJson = JSON.stringify(this.form)
    },
    submitForm() {
      return this.form
    }
  }
}
</script>

<style scoped>
  .main {
    margin: 30px;
  }
</style>
